#include "CManageNetwork.h"

CManageNetworkSingle* CManageNetworkSingle::instance = NULL;

CManageNetworkSingle* CManageNetworkSingle::getInstance()
{
	if( !instance )
		instance = new CManageNetworkSingle();
	return instance;
}

CManageNetworkSingle::CManageNetworkSingle()
{
	// private constructor, spawns the local client and
	// server
	m_pClient = new CClient();
	m_pServer = new CServer();

}

CManageNetworkSingle::~CManageNetworkSingle()
{
	//DESTROY!
	m_pServer->~CServer();
	m_pClient->~CClient();
}
